package com.artisan.spider.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 定时推送统计信息定时任务表
 * </p>
 *
 * @author kubilewang
 * @since 2022-03-26
 */
@TableName("sp_scheduled")
@ApiModel(value = "SpScheduled对象", description = "任务表")
@Data
public class SpScheduled implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    @ApiModelProperty("主键id")
    private String id;


    @ApiModelProperty("任务标识")
    private String taskKey;

    @ApiModelProperty("任务描述")
    private String taskDesc;

    @ApiModelProperty("cron表达式")
    private String taskCron;

    @ApiModelProperty("程序初始化是否启动 1 是 0 否")
    private Integer initStartFlag;

    @ApiModelProperty("当前是否已启动")
    private Integer startFlag;

    @ApiModelProperty("当前定时任务采集到第几页(断点采集,下次服务再运行的时候从当前页开始采集)")
    private Integer pageNum;


    @ApiModelProperty("开始时间")
    private LocalDateTime startTime;

    @ApiModelProperty("结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty("页面路径")
    private String pageUrl;

    @ApiModelProperty("备注")
    private String colIden;


    @ApiModelProperty("多少页开启一个线程")
    private Integer pageThread;

    @ApiModelProperty("抓取前多少页")
    private Integer frontNum;

}
